package com.atguigu.gmall.activity.client;


import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "service-activity")
@RequestMapping("/api/activity/seckill")
public interface SeckillGoodsFeignClient {

    //查询秒杀商品集合
    @GetMapping("/list")
    public List<SeckillGoods> list();

    //查询一个秒杀商品
    @GetMapping("/seckill/{skuId}")
    public SeckillGoods seckillDetail(@PathVariable(name = "skuId") String skuId);
}
